home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 7 / BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso / Files / Prog / M / LSP⁄C.cpt / Pascal - C Comparison.rsrc / TEXT_1000.txt < prev    next >
Encoding:
Text File  |  1989-01-07  |  851 b   |  9 lines

  1. Pascal ‚Ä¢ C Comparison
  2. by Galen Babcock
  3. January, 1989
  4.  
  5. This application compares the execution speed of code generated by the THINK C Version 3.0 and THINK Pascal Version 2.0 compilers.  Two versions of the THINK C code are provided, one using Motorola 68000 address registers, and one without specifying the use of registers.  Pascal provides no mechanism for forcing addresses into registers.
  6.  
  7. All 3 routines fill a block (referenced via a pointer) of varying sizes with a single character. The size of the block and the number of times the routine is executed for each of the 3 versions are selectable from the "Compare" menu.
  8.  
  9. The window also displays a "Performance Index" value, which is simply a comparison of the 3 execution times versus a control time.  You can select which routine is the control by clicking in the performance index boxes.